package dice.sinanya.tools.makedata;

import java.util.HashMap;
import java.util.Map;

import static dice.sinanya.tools.getinfo.GetMessagesToValue.getMessagesToValue;

public class MakeProperties {
    public static HashMap<String, Integer> makeProStrToMap(String properties) {
        return getMessagesToValue(properties);
    }

    public static String makeProMapToStr(HashMap<String, Integer> properties) {
        StringBuilder propStr = new StringBuilder();
        for (Map.Entry<String, Integer> prop : properties.entrySet()) {
            propStr.append(prop.getKey()).append(prop.getValue());
        }
        return propStr.toString();
    }
}
